<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      * {
        margin: 0;
        padding: 0;
      }

      body {
        padding: 50px;
      }

      div {
        position: relative;
        overflow: hidden;
        width: 300px;
        height: 200px;
        border: solid 4px blueviolet;
      }

      div span {
        position: absolute;
        top: 10px;
        left: 10px;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        text-align: center;
        line-height: 1.5em;
        background: blueviolet;
        color: white;
      }
      div img {
        width: 100%;
        height: 100%;
        float: left;
      }
    </style>
  </head>
  <body>
    <div>
      <span>热</span>
      <img src="01.png" alt="" />
    </div>
  </body>
</html>
